package com.itheima.health.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface CheckGroupItemDao {


    void insert(Map<String, Integer> map);

    @Delete("delete from t_checkgroup_checkitem where checkgroup_id =#{id}")
    void deleteByCheckGroupId(Integer id);

    @Select("select  checkitem_id from t_checkgroup_checkitem where checkgroup_id=#{integer}")
    Integer[] find(Integer integer);
}
